import { Button } from "antd"
import React  from "react"
class CallPage extends React.Component{



  // const swichChange = (id: number, value: boolean, type: number = 0) => {
  //   console.log(lastSwitchValues, 'lastSwitchValues===');

  //   lastSwitchValues[id] = value;
  //   setLastSwitchValues(lastSwitchValues);
  //   let newNotIds = Object.assign({}, switchValues);
  //   if (newNotIds[id] == undefined) {
  //     newNotIds[id] = {
  //       type: type,
  //       value: !value ? (type == 1 ? 0 : 5) : type == 1 ? 1 : 9,
  //     };
  //   } else {
  //     delete newNotIds[id];
  //   }
  //   setSwitchValues(newNotIds);
  // };









  dispatchEvent=()=>{
    document.dispatchEvent(new CustomEvent('callEvent',{
      detail:{
        callId:this.props.callId
      }
    }))
  }
  render(){
    return <Button onClick={this.dispatchEvent}/>
  }
}
// class ReportPage extends 
